package com.ft.oa.service.customer;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.ft.oa.domain.customer.Customer;
import com.ft.oa.domain.customer.CustomerTail;
import com.ft.oa.domain.dto.condition.SysUserDTO;
import com.ft.oa.web.customer.rq.CustomerPage;

import java.util.List;

public interface CustomerService {


    /**
     * 根据条件查询企业
     */
    public IPage<Customer> selectCustomerById(CustomerPage customerPage);

    /**
     * 添加企业客户信息
     * @param customer
     * @return
     */
    public int insertCustomer (Customer customer);

    /**
     * 修改企业客户信息
     * @param customer
     * @return
     */
    public int updateCustomer(Customer customer);

    /**
     * 删除企业客户信息
     * @param id
     * @return
     */
    public int deleteCustomer(Integer id);

    /**
     * 查询所有客户
     * @return
     */
    public List<Customer> selectCustomer();

}
